﻿using Rapid.MvcExtension.Controllers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Rapid.MvcApplication.Areas.Manage.Controllers
{
    public class HomeController : ManageController
    {
        public ActionResult Index()
        {
            HttpCookie cookie = Request.Cookies["theme"];

            if (cookie == null)
            {
                cookie = new HttpCookie("theme", "default");

                Response.Cookies.Add(cookie);
            }

            ViewBag.Theme = cookie.Value;

            return View();
        }

        public ActionResult Welcome()
        {
            return View();
        }
    }
}